\<%@ page pageEncoding="UTF-8"%>
\<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
\<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
\<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
\<%@ taglib uri="http://www.kevin.com/util" prefix="util" %>
\<%@ page trimDirectiveWhitespaces="true" %>

<form action="\${ctxPathA}/${baseURL!}/addOrUpdate" method="post"  >
    <input id="id" name="id" type="hidden" maxlength="100" value="\${model.id }">
    <table class="show">
    	<colgroup>
    		<col width="20%">
    		<col width="">
    	</colgroup>
	<% for ( fieldModel in fieldList ) { %>
		<% //排除不显示的字段 %>
		<% if ( fieldModel.isShowInUpdate ) { %>
			<% //日期类型 %>
			<% if ( fieldModel.fieldType == "Date" || fieldModel.inputType == "date" ) { %>
		<tr>
            <td>
            	<label>${fieldModel.comments}：</label>
            </td>
         	<td><input type="text" name="${fieldModel.fieldName}" value="\${model.${fieldModel.fieldName}}" ></td>
		</tr>
			<% //富文本编辑器 %>
			<% } else if ( fieldModel.inputType == "textarea" ) { %>
		<tr>
            <td>
            	<label>${fieldModel.comments}：</label>
            </td>
         	<td>
         		<textarea id="ueditorContents" name="${fieldModel.fieldName}" class="ueditor" style="width:99%;height:300px;" maxlength="400">\${model.${fieldModel.fieldName}}</textarea>
         	</td>
		</tr>
			<% } else { %>
        <tr>
            <td>
            	<label>${fieldModel.comments}：</label>
            </td>
         	<td><input type="${fieldModel.inputType}" name="${fieldModel.fieldName}" value="\${model.${fieldModel.fieldName}}"></td>
		</tr>
			<% } %>
		<% } %>
	<% } %>
    </table>
    <div class="taCenter">
		<input class="button opt taCenter" type="submit" value="提交"/>
    	<input class="button default" type="reset" value="重置"/>
    </div>
</form>
